package com.cmc.cloud.cmclink.doc.api.document.req.si;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 提单Vgm信息更新 Dto
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 提单货物信息更新 Request VO")
@Data
@ToString(callSuper = true)
public class VgmBaseDto {

    @Schema(description = "提单号")
    private String blNo;

    @Schema(description = "箱号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String cntrNo;

    @Schema(description = "VGM重量")
    private BigDecimal vgmWeight;

    @Schema(description = "VGM称重方式")
    private String vgmTypeCode;

    @Schema(description = "VGM称重地点")
    private String vgmAddress;

    @Schema(description = "VGM称重时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime vgmTime;

    @Schema(description = "VGM验证签名")
    private String vgmSignature;
}
